﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity
{
    /// <summary>
    /// Order_Decimal
    /// </summary>
    [Table("Order_Decimal")]
    public class Order_Decimal
    {
        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// CreatorId
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// CreateTime
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// Deleted
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public String OrderCode { get; set; }

        /// <summary>
        /// 订单主表Id
        /// </summary>
        public String OrderMaster_Id { get; set; }

        /// <summary>
        /// 产品Id
        /// </summary>
        public String Product_Id { get; set; }

        /// <summary>
        /// 产品Id
        /// </summary>
        public String Products_Id { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int? Products_Num { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public Decimal? SumProducts { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public String ProductNames { get; set; }

        /// <summary>
        /// 产品规格
        /// </summary>
        public String ProductitemNames { get; set; }

        /// <summary>
        /// 产品图片
        /// </summary>
        public String ProductImage { get; set; }

        /// <summary>
        /// 产品价格
        /// </summary>
        public decimal ProductPrice { get; set; }

        /// <summary>
        /// DATA0
        /// </summary>
        public String DATA0 { get; set; } = "0";

        /// <summary>
        /// DATA1
        /// </summary>
        public String DATA1 { get; set; }

        /// <summary>
        /// DATA2
        /// </summary>
        public String DATA2 { get; set; }
        /// <summary>
        /// 退款状态
        /// </summary>
        public int IsRefund { get; set; }

        /// <summary>
        /// 积分单价
        /// </summary>
        public int PointPrice { get; set; }

        /// <summary>
        ///积分总计
        /// </summary>
        public int SumPoint { get; set; }

        [NotMapped]
        public int? StarNum { get; set; }

        [NotMapped]
        public string PLContent { get; set; }
    }
}